package com.bbs.service.impl;

import com.bbs.dao.TopicDao;
import com.bbs.entity.Topic;
import com.bbs.service.TopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("topicService")
public class topicServiceImpl implements TopicService {
    @Autowired
    private TopicDao topicDao;
    public List<Topic> ListTopic(){
        return topicDao.listTopic();
    }

    @Override
    public List<Topic> listTopic(){
        List<Topic> topicsList  = topicDao.listTopic();
        return topicsList;
    }

    @Override
    public List<String> listImage() {
        return null;
    }
}
